﻿using System;
using DDDSample.Domain.HandlingEvent;

namespace DDDSample.Domain.Cargo
{
    public class HandlingActivity
    {
        private readonly HandlingEventType _eventType;
        private readonly Location.Location _location;

        protected HandlingActivity()
        {
        }

        public HandlingActivity(HandlingEventType eventType, Location.Location location)
        {
            if (location == null)
            {
                throw new ArgumentNullException("location");
            }
            _eventType = eventType;
            _location = location;
        }

        public HandlingEventType EventType
        {
            get { return _eventType; }
        }

        public Location.Location Location
        {
            get { return _location; }
        }
    }
}